package cn.ggcms.cms.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Comment entity. @author MyEclipse Persistence Tools
 */

public class Comment implements java.io.Serializable {

	// Fields

	private Integer id;
	private Users users;
	private String userName;
	private Date createTime;
	private String content;
	private Integer citeId;
	private Integer support;
	private Integer oppose;
	private Short commentType;
	private Set aritcles = new HashSet(0);
	private Set pictureses = new HashSet(0);
	private Set softWareses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Comment() {
	}

	/** minimal constructor */
	public Comment(String userName, Date createTime, Integer support,
			Integer oppose, Short commentType) {
		this.userName = userName;
		this.createTime = createTime;
		this.support = support;
		this.oppose = oppose;
		this.commentType = commentType;
	}

	/** full constructor */
	public Comment(Users users, String userName, Date createTime,
			String content, Integer citeId, Integer support, Integer oppose,
			Short commentType, Set aritcles, Set pictureses, Set softWareses) {
		this.users = users;
		this.userName = userName;
		this.createTime = createTime;
		this.content = content;
		this.citeId = citeId;
		this.support = support;
		this.oppose = oppose;
		this.commentType = commentType;
		this.aritcles = aritcles;
		this.pictureses = pictureses;
		this.softWareses = softWareses;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getCiteId() {
		return this.citeId;
	}

	public void setCiteId(Integer citeId) {
		this.citeId = citeId;
	}

	public Integer getSupport() {
		return this.support;
	}

	public void setSupport(Integer support) {
		this.support = support;
	}

	public Integer getOppose() {
		return this.oppose;
	}

	public void setOppose(Integer oppose) {
		this.oppose = oppose;
	}

	public Short getCommentType() {
		return this.commentType;
	}

	public void setCommentType(Short commentType) {
		this.commentType = commentType;
	}

	public Set getAritcles() {
		return this.aritcles;
	}

	public void setAritcles(Set aritcles) {
		this.aritcles = aritcles;
	}

	public Set getPictureses() {
		return this.pictureses;
	}

	public void setPictureses(Set pictureses) {
		this.pictureses = pictureses;
	}

	public Set getSoftWareses() {
		return this.softWareses;
	}

	public void setSoftWareses(Set softWareses) {
		this.softWareses = softWareses;
	}

}